torchMode
Type
property
Summary
If the device's flash light should be turned on.
Syntax
get the torchMode of <widget>
set the torchMode of <widget> to "auto"
set the torchMode of <widget> to "on"
set the torchMode of <widget> to "off"
Description
Set the torchMode to specify when the device's flash light should be turned on. The flash light can be used to improve scanning results in low light conditions. If set to "off", the flash light will never turn on. If set to "on", the flash light will always be on. If set to "auto", the flash light will turn on when the ambient light levels are deemed too low.
Defaults to "off"
Compatibility and Support
OS
android